package com.topvision.common.enumeration;

/**
 * @author shengwm
 * @version V0.0.1
 * @Title: AuthorizeTypeEnum
 * @Package com.topvision.common.enumeration
 * @Description: 授权范围
 * @date 2017/7/14 10:51
 */
public enum AuthorizeTypeEnum implements BaseEnum {
    AUTHORIZE_TYPE_0("0", "所在公司及其以下数据"),
    AUTHORIZE_TYPE_1("1", "所在公司数据"),
    AUTHORIZE_TYPE_2("2", "所在部门及其以下数据"),
    AUTHORIZE_TYPE_3("3", "所在部门数据"),
    AUTHORIZE_TYPE_4("4", "个人数据"),
    AUTHORIZE_TYPE_5("5", "自定义授权");


    private final String value;
    private final String label;

    AuthorizeTypeEnum(String value, String label) {
        this.value = value;
        this.label = label;
    }

    /**
     * 获取值
     *
     * @return
     */
    @Override
    public String getValue() {
        return value;
    }

    /**
     * 获取标签
     *
     * @return
     */
    @Override
    public String getLabel() {
        return label;
    }
}
